package com.tingyun.sign.questions.bean;

import java.util.ArrayList;
import java.util.List;
import java.util.Map;

public class DataGrid<T> {
	private long total;
	private List<T> rows;
	private List<Object> footer;
	public long getTotal() {
		return total;
	}
	public void setTotal(long l) {
		this.total = l;
	}
	public List<T> getRows() {
		if(rows == null){
			rows = new ArrayList<T>();
		}
		return rows;
	}
	public void setRows(List<T> rows) {
		this.rows = rows;
	}
	public List<Object> getFooter() {
		return footer;
	}
	public void setFooter(List<Object> footer) {
		this.footer = footer;
	}
	public void setFooter(Map<String, Object> countMap) {
		List<Object> countList = new ArrayList<Object>();
		countList.add(countMap);
		this.footer = countList;
	}	
}